#ifndef IMAGEPROCESS_H
#define IMAGEPROCESS_H

#include <QObject>
#include <QImage>
#include"imageprovider.h"

class ImageProcess:public QObject
{
    Q_OBJECT
public:
    ImageProcess(QObject *parent=nullptr);
public:
    Q_INVOKABLE void processImg();

    void setImg(const QImage& imgQ);    //接收传来的图像，用于其他地方处理

signals:
    //void callQmlRefreshImg();
    void processFinished();
public:
    ImageProvider* m_pImageProvider=nullptr;
    QImage m_imgQ;
};

#endif // IMAGEPROCESS_H
